complete the Undo operation